<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<s:if test="%{type.equals('offline')||type.equals('online')}">
<a href="javascript:void(0);" title="<s:if test="appstatus==0">点击下线</s:if><s:else>点击上线</s:else>" 
	                onclick="channelapp_setdeployedonline('<s:property value="model.id"/>', '<s:if test="model.appstatus==0">offline</s:if><s:else>online</s:else>');">
	                <s:property value="%{getConstantString('cpapp status',model.appstatus)}" /></a>
</s:if>
<s:else>
<textarea>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5"></td>
    <td>    
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="3">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_top_left.jpg" width="20" height="15" /></td>
            <td><img src="images/table_top_bg.jpg" width="770" height="15"/></td>
            <td align="right"><img src="images/table_top_right.jpg" width="20" height="15" /></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td height="25" colspan="3" class="table_blue">
        <strong><img src="images/dot.jpg" width="13" height="9">操作完成</strong></td>
    </tr> 
    <tr>
      <td  class="table_w1" colspan="2" align="center">
        <strong><font color="red"><s:actionerror /></font></strong>
      </td>
    </tr>
    <tr>
      <td class="table_w1" colspan="3" align="center">
        <button id="btn2" dojoType="dijit.form.Button" 
            onclick="cm_listchannelapp('<s:property value="model.appnumber"/>','<s:property value="model.cpid"/>');">确定</button></td>
    </tr>
    <tr> 
      <td colspan="3" background="images/table_bom_bg.jpg">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/table_bom_left.jpg" width="20" height="15"></td>
          <td></td>
          <td align="right"><img src="images/table_bom_right.jpg" width="20" height="15"></td>
        </tr>
        </table>
      </td>
    </tr>
  </table>  
  </td>
  <td width="5"></td>
  </tr>
  </table>
  </textarea>
  </s:else>